package d109;

public class StudentTest {
    public static void main(String[] args) {
    //创建对象
        Student stu = new Student();
    //调用对象方法
        stu.add(20,30);

    }
    static class Student{
        //成员变量
        String name;
        //成员方法
        public static int add(int x , int y){
            int sum = x+y;
            System.out.println(sum);
            return sum;

        }
    }

}
